package com.yukh.framework.mybatis.generator.page.demo1;

import java.util.List;

import org.mybatis.generator.api.PluginAdapter;
import org.mybatis.generator.api.ShellRunner;

public class SelectByPagePlugin1 extends PluginAdapter {   
  
    @Override  
    public boolean validate(List<String> warnings) {   
        return true;   
    }   
    
    public static void generate() {
		String config = SelectByPagePlugin1.class.getResource("page-generator.xml").getFile();
		String[] arg = { "-configfile", config, "-overwrite" };
		ShellRunner.main(arg);
	}

	public static void main(String[] args) {
		generate();
	}
  
}  

